<template>
  <demoBlock title="使用图片 URL" padding>
    <vcu-icon :name="imageUrl" />
  </demoBlock>
</template>
<script>
import { defineComponent, getCurrentInstance, computed } from "vue";

export default defineComponent({
  setup() {
    const { proxy } = getCurrentInstance();
    const imageUrl = computed(() => {
      return `${proxy.serverIp}/images/iconzhuyuanxiyao.png`;
    });

    return { imageUrl };
  },
});
</script>